﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RentHouse.DTO
{
    public class LoginDTO
    {
        [Required(ErrorMessage ="请输入手机号")]
        public string PhoneNum { get; set; }

        [Required(ErrorMessage = "请输入密码")]
        public string Password { get; set; }

        [Required(ErrorMessage = "请输入验证码")]
        [StringLength(4,MinimumLength =4,ErrorMessage ="验证码长度为4个字符")]
        public string VerCode { get; set; }

        public bool IsRemeberMe { get; set; }
        //public string ReturnUrl { get; set; }
    }
}
